package com.wiz.to;

import java.io.Serializable;
import java.util.Date;

/**
 * 登录相关信息
 * @author xxy
 *
 */
public class AdminLoginInfoTO implements Serializable{
	private int id;//id
	private String hqId;//油站总部id
	private String hqName;//油站总部名
	private String stationId;//油站站点id
	private String stationName;//油站站点名
	private String title;//员工职务
	private String stationAdminId;//站点员工id
	private String stationAdminName;//站点员工名
	private String username;//用户名
	private String password;//密码
	private String phoneNum;//手机号码
	private int isAdmin;//是否管理员：1是，0否（管理员拥有所有权限）
	private int fuellingType;//加油员工类型：1加油员，2维修员。纯云平台管理员时为0（配合权限配置使用）
	private int status;//状态：1有效，0冻结，-1注销
	private Date createdTime;//创建时间
	private Date lastestLoginTime;//最后一次登录时间
	private Date updateTime;//更改时间
	
	
	public AdminLoginInfoTO() {
		super();
	}
	public AdminLoginInfoTO(HQBaseInfoTO hqBaseInfoTO) {
		super();
		this.hqId = hqBaseInfoTO.getHqId();
		this.hqName = hqBaseInfoTO.getHqName();
		this.stationId = "";
		this.stationName = "";
		this.title = "超级管理员";
		this.stationAdminId = null;
		this.stationAdminName = null;
		this.username = hqBaseInfoTO.getEmail();
		this.password = hqBaseInfoTO.getPassword();
		this.phoneNum = hqBaseInfoTO.getPhoneNum();
		this.isAdmin = 1;
		this.fuellingType = 0;
		this.status = 1;
		this.createdTime = hqBaseInfoTO.getCreatedTime();
		this.lastestLoginTime = null;
		this.updateTime = hqBaseInfoTO.getCreatedTime();
	}
	public AdminLoginInfoTO(int id, String hqId, String hqName,
			String stationId, String stationName, String title,
			String stationAdminId, String stationAdminName, String username,
			String password, String phoneNum, int isAdmin, int fuellingType,
			int status, Date createdTime, Date lastestLoginTime, Date updateTime) {
		super();
		this.id = id;
		this.hqId = hqId;
		this.hqName = hqName;
		this.stationId = stationId;
		this.stationName = stationName;
		this.title = title;
		this.stationAdminId = stationAdminId;
		this.stationAdminName = stationAdminName;
		this.username = username;
		this.password = password;
		this.phoneNum = phoneNum;
		this.isAdmin = isAdmin;
		this.fuellingType = fuellingType;
		this.status = status;
		this.createdTime = createdTime;
		this.lastestLoginTime = lastestLoginTime;
		this.updateTime = updateTime;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getHqId() {
		return hqId;
	}
	public void setHqId(String hqId) {
		this.hqId = hqId;
	}
	public String getHqName() {
		return hqName;
	}
	public void setHqName(String hqName) {
		this.hqName = hqName;
	}
	public String getStationId() {
		return stationId;
	}
	public void setStationId(String stationId) {
		this.stationId = stationId;
	}
	public String getStationName() {
		return stationName;
	}
	public void setStationName(String stationName) {
		this.stationName = stationName;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getStationAdminId() {
		return stationAdminId;
	}
	public void setStationAdminId(String stationAdminId) {
		this.stationAdminId = stationAdminId;
	}
	public String getStationAdminName() {
		return stationAdminName;
	}
	public void setStationAdminName(String stationAdminName) {
		this.stationAdminName = stationAdminName;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPhoneNum() {
		return phoneNum;
	}
	public void setPhoneNum(String phoneNum) {
		this.phoneNum = phoneNum;
	}
	public int getIsAdmin() {
		return isAdmin;
	}
	public void setIsAdmin(int isAdmin) {
		this.isAdmin = isAdmin;
	}
	public int getFuellingType() {
		return fuellingType;
	}
	public void setFuellingType(int fuellingType) {
		this.fuellingType = fuellingType;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public Date getCreatedTime() {
		return createdTime;
	}
	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}
	public Date getLastestLoginTime() {
		return lastestLoginTime;
	}
	public void setLastestLoginTime(Date lastestLoginTime) {
		this.lastestLoginTime = lastestLoginTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	
	

}
